//
//  CityFileManager.h
//  MemberProject
//
//  Created by vincent luo on 15/7/9.
//  Copyright (c) 2015年 MAC OS X. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef enum:NSInteger
{
    CityFileType = 1,
    BankFileType = 2
    
}FileType;

@interface CityFileManager : NSObject
@property (nonatomic,retain) NSString *cityVersion;
@property (nonatomic,retain) NSString *bankVersion;
@property (nonatomic,assign) NSInteger fileType;

+ (CityFileManager *)sharedManager;

//-(void)writeLocalLog:(NSDictionary *)cityDic;

-(NSArray *)getLocalLog:(NSInteger)style;

//-(NSArray *)getLocalCityArr;


//-(void)removeUserFile;

-(BOOL)isNeedToUpdate:(NSString *)version andType:(NSInteger)type;//是否需要更新json

-(void)getCityFile:(CSResultBlock)success andDefault:(CSVoidBlock)errorBlock;

-(void)getBankFile:(CSResultBlock)success andDefault:(CSVoidBlock)errorBlock;



-(NSString *)getAreaNameFromCode:(NSString *)areaCode;
@end
